The INSERT_MODIFIED command allows you to easily insert the date that the given file was last modified. If the parameter "filename" is not used, then the command will display the last modified date of the current page being served. For example, many pages may end in:
This page last updated on <INSERT_MODIFIED>.
The command can be particularly useful in macros, where a single macro (perhaps a footer) may be used on many pages. In this case, the INSERT_MODIFIED command need only appear in a single macro but will always display the modification date of the page that has been served.
The command also allows you to display the last modified date of any file on your server by specifying the optional filename parameter.
Note that if you use the INSERT_MODIFIED command inside a page that is not stored on disk (such as from a back-end CGI), NetCloak will not be able to determine a modified date and will insert the current date instead.
The format of the date inserted will depend on the date format you have selected in the Date & Time control panel, as well as the setting of the Short Date menu option in NetCloak. See the "Configuring NetCloak" section below for more information on the way that NetCloak formats dates.
This command inserts the size of the specified file as it is stored on disk. If a filename is not specified, the size of the page being served is given. There are three variations of the command, including "INSERT_FILESIZE_B", "INSERT_FILESIZE_K", and "INSERT_FILESIZE_M" for displaying the size of the file in either bytes, kilobytes, or megabytes, respectively.
The filename parameter may also be a file path. Like all paths specified in NetCloak, when the path begins with a slash ("/"), the path is relative to the root folder, as defined in the NetCloak Configuration window. Here are some examples:
<INSERT_FILESIZE_B /MyFile.sit.hqx> <INSERT_FILESIZE_K /Folder/Moof.hqx> <INSERT_FILESIZE_M /BigFile.sit.hqx>
The first example is a file ("MyFile.sit.hqx") that resides in the root folder and the size is displayed in bytes. The second example gives the size, in kilobytes, of a file in a folder named "Folder" contained in the root folder. The last example shows the number of megabytes used by a large file in the server root.
Displaying the size in bytes will always show the exact size of the file, while displaying kilobytes will cause NetCloak to round up to the nearest kilobyte. When displaying the size in megabytes, NetCloak will round up to the nearest tenth of a megabyte.
Copyright © 1996-7 Maxum Development Corporation
820 South Bartlett Road - Suite 104
Streamwood, IL 60107
http://www.maxum.com/